package cn.pping.org.domain;

import cn.pping.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
* @Description: 员工类
* @Author: Pan
* @Version: 1.0
* @Date:  2022/6/21 19:19
*/

@Data
public class Employee extends BaseDomain {


   private String username;
   private String phone;
   private String email;
   private String salt;
   private String password;
   private Integer age;
   private Integer state;
   private Integer department_id;
   private Integer logininfo_id;
   private Integer shop_id;
   private Department parent;


   private Department department;
   @JsonInclude(JsonInclude.Include.NON_EMPTY)
   private List<Employee> children = new ArrayList<>();

}
